home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / EMSIF230.ARJ / EXMAKEMS < prev    next >
Text File  |  1991-12-01  |  5KB  |  160 lines

  1. #
  2. # EXAMPLE MAKEFILE FOR EMSTEST TESTER/EXAMPLE PROGRAM FOR EMSIF
  3. # MICROSOFT C
  4. # 12/01/91
  5. #
  6. #   This is an example makefile for Microsoft C, to make the EMSTEST tester/
  7. # example program in any of the six supported memory models. It is compatible
  8. # with the NMAKE utility provided with the compiler. As supplied, it is set
  9. # up for Microsoft C 6.00A. To reconfigure for earlier compilers, two changes
  10. # may be required. First, check if your version of the compiler has the
  11. # library functions _fmemcmp() and _fmemset(). If it does not, add "/DNO_FFUNC"
  12. # to the line that begins "CFLAGS". Second, check if your version of the
  13. # compiler supports in-line assembly code. If it does, no changes should be
  14. # necessary. If it does not, or you do not wish to use the in-line assembly
  15. # code (even though it improves execution speed significantly), simply remove
  16. # "/DINLINE_ASM" from the line that begins "CFLAGS".
  17. #
  18. #   Before using this makefile, make sure that the Microsoft NMAKE utility
  19. # and the appropriate command-line compiler and linker are in your path,
  20. # and that the necessary environment variables (INCLUDE and LIB) are set
  21. # appropriately. The four source files (EMSTEST.C, EMSTEST2.C, EMSTEST3.C,
  22. # and TESTUTIL.C), the header files (EMSTEST.H, TESTUTIL.H, and EMSIF.H), and
  23. # the appropriate library or libraries (EMSIF*.LIB) should all be in the
  24. # current directory.
  25. #
  26. #    To use the makefile, type "nmake /f exmakems target", where 'target' is
  27. # one or more of tiny, small, medium, compact, large, or huge separated by
  28. # spaces. For example, "nmake /f exmakems tiny" would make the tiny-model
  29. # example and "nmake /f exmakems small large" would make the small- and
  30. # large-model examples. "nmake /f exmakems" will make the test programs
  31. # for all memory models.
  32. #
  33.  
  34.  
  35. CC    =cl
  36. CFLAGS    = /c /DINLINE_ASM
  37.  
  38. LINK    = link
  39. LF    =
  40.  
  41.  
  42. all:        tiny small medium compact large huge
  43.  
  44. tiny:        emstesta emstestb emstestc
  45.  
  46. small:        semstest
  47.  
  48. medium:        memstest
  49.  
  50. compact:    cemstest
  51.  
  52. large:        lemstest
  53.  
  54. huge:        hemstest
  55.  
  56.  
  57. emstesta.obj:    emstest.c emstest.h testutil.h
  58.     $(CC) $(CFLAGS) /AT /DTINYPASS1 /Fo$@ emstest.c
  59.  
  60. emstestb.obj:    emstest.c emstest.h testutil.h
  61.     $(CC) $(CFLAGS) /AT -DTINYPASS2 /Fo$@ emstest.c
  62.  
  63. emstestc.obj:    emstest.c emstest.h testutil.h
  64.     $(CC) $(CFLAGS) /AT -DTINYPASS3 /Fo$@ emstest.c
  65.  
  66. semstest.obj:    emstest.c emstest.h testutil.h
  67.     $(CC) $(CFLAGS) /AS /Fo$@ emstest.c
  68.  
  69. memstest.obj:    emstest.c emstest.h testutil.h
  70.     $(CC) $(CFLAGS) /AM /Fo$@ emstest.c
  71.  
  72. cemstest.obj:    emstest.c emstest.h testutil.h
  73.     $(CC) $(CFLAGS) /AC /Fo$@ emstest.c
  74.  
  75. lemstest.obj:    emstest.c emstest.h testutil.h
  76.     $(CC) $(CFLAGS) /AL /Fo$@ emstest.c
  77.  
  78. hemstest.obj:    emstest.c emstest.h testutil.h
  79.     $(CC) $(CFLAGS) /AH /Fo$@ emstest.c
  80.  
  81. temstst2.obj:    emstest2.c emstest.h testutil.h
  82.     $(CC) $(CFLAGS) /AT /Fo$@ emstest2.c
  83.  
  84. semstst2.obj:    emstest2.c emstest.h testutil.h
  85.     $(CC) $(CFLAGS) /AS /Fo$@ emstest2.c
  86.  
  87. memstst2.obj:    emstest2.c emstest.h testutil.h
  88.     $(CC) $(CFLAGS) /AM /Fo$@ emstest2.c
  89.  
  90. cemstst2.obj:    emstest2.c emstest.h testutil.h
  91.     $(CC) $(CFLAGS) /AC /Fo$@ emstest2.c
  92.  
  93. lemstst2.obj:    emstest2.c emstest.h testutil.h
  94.     $(CC) $(CFLAGS) /AL /Fo$@ emstest2.c
  95.  
  96. hemstst2.obj:    emstest2.c emstest.h testutil.h
  97.     $(CC) $(CFLAGS) /AH /Fo$@ emstest2.c
  98.  
  99. temstst3.obj:    emstest3.c emstest.h testutil.h
  100.     $(CC) $(CFLAGS) /AT /Fo$@ emstest3.c
  101.  
  102. semstst3.obj:    emstest3.c emstest.h testutil.h
  103.     $(CC) $(CFLAGS) /AS /Fo$@ emstest3.c
  104.  
  105. memstst3.obj:    emstest3.c emstest.h testutil.h
  106.     $(CC) $(CFLAGS) /AM /Fo$@ emstest3.c
  107.  
  108. cemstst3.obj:    emstest3.c emstest.h testutil.h
  109.     $(CC) $(CFLAGS) /AC /Fo$@ emstest3.c
  110.  
  111. lemstst3.obj:    emstest3.c emstest.h testutil.h
  112.     $(CC) $(CFLAGS) /AL /Fo$@ emstest3.c
  113.  
  114. hemstst3.obj:    emstest3.c emstest.h testutil.h
  115.     $(CC) $(CFLAGS) /AH /Fo$@ emstest3.c
  116.  
  117. ttstutil.obj:    testutil.c testutil.h
  118.     $(CC) $(CFLAGS) /AT /Fo$@ testutil.c
  119.  
  120. ststutil.obj:    testutil.c testutil.h
  121.     $(CC) $(CFLAGS) /AS /Fo$@ testutil.c
  122.  
  123. mtstutil.obj:    testutil.c testutil.h
  124.     $(CC) $(CFLAGS) /AM /Fo$@ testutil.c
  125.  
  126. ctstutil.obj:    testutil.c testutil.h
  127.     $(CC) $(CFLAGS) /AC /Fo$@ testutil.c
  128.  
  129. ltstutil.obj:    testutil.c testutil.h
  130.     $(CC) $(CFLAGS) /AL /Fo$@ testutil.c
  131.  
  132. htstutil.obj:    testutil.c testutil.h
  133.     $(CC) $(CFLAGS) /AH /Fo$@ testutil.c
  134.  
  135.  
  136. emstesta:    emstesta.obj ttstutil.obj emsifs.lib
  137.     $(LINK) $(LF) /ST:0x800 emstesta ttstutil, emstesta, , emsifs ;
  138.  
  139. emstestb:    emstestb.obj temstst2.obj ttstutil.obj emsifs.lib
  140.     $(LINK) $(LF) /ST:0x800 emstestb temstst2 ttstutil, emstestb, , emsifs ;
  141.  
  142. emstestc:    emstestc.obj temstst3.obj ttstutil.obj emsifs.lib
  143.     $(LINK) $(LF) /ST:0x800 emstestc temstst3 ttstutil, emstestc, , emsifs ;
  144.  
  145. semstest:    semstest.obj semstst2.obj semstst3.obj ststutil.obj emsifs.lib
  146.     $(LINK) $(LF) semstest semstst2 semstst3 ststutil, semstest, , emsifs ;
  147.  
  148. memstest:    memstest.obj memstst2.obj memstst3.obj mtstutil.obj emsifm.lib
  149.     $(LINK) $(LF) memstest memstst2 memstst3 mtstutil, memstest, , emsifm ;
  150.  
  151. cemstest:    cemstest.obj cemstst2.obj cemstst3.obj ctstutil.obj emsifc.lib
  152.     $(LINK) $(LF) cemstest cemstst2 cemstst3 ctstutil, cemstest, , emsifc ;
  153.  
  154. lemstest:    lemstest.obj lemstst2.obj lemstst3.obj ltstutil.obj emsifl.lib
  155.     $(LINK) $(LF) lemstest lemstst2 lemstst3 ltstutil, lemstest, , emsifl ;
  156.  
  157. hemstest:    hemstest.obj hemstst2.obj hemstst3.obj htstutil.obj emsifh.lib
  158.     $(LINK) $(LF) hemstest hemstst2 hemstst3 htstutil, hemstest, , emsifh ;
  159.  
  160.